<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <script type="text/javascript" src="index.js"></script>
    </head>
    <body>
    <script type="text/javascript">
    var flag=true;
    var user=prompt('请选择你要进行的操作！\n1.登录\n2.注册\n3.退出');
    switch(user){
        case 1:
        denglu();
        break;

        case 2:
        zhuce();
        break;

        case 3:
        
    }




    </script>
    </body>
</html>